﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.ServiceModel.Channels;
using DuplexMsmqShared;

namespace DuplexMsmqClient
{
	class Program
	{
		static void Main(string[] args)
		{
			Console.WriteLine("Hit a key");
			Console.ReadLine();
			Binding bind = BindingFactory.Create(new Uri("net.msmq://SHIELDP/private/client"));
			DuplexChannelFactory<IConversation> channel = new DuplexChannelFactory<IConversation>(new Conversation(), bind, new EndpointAddress("net.msmq://SHIELDP/private/server"));
			channel.CreateChannel().Say("Hello I'm Nico");
			while(true)
			{
			}
		}
	}
}
